<!--
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-10-07 16:48:59
 * @LastEditTime: 2019-10-07 16:48:59
 * @LastEditors: your name
 -->
#VRML V2.0 utf8 PROTO desk [ field SFVec3f deskPos 0 0 0 field SFColor deskColor 1 0 0 field SFColor legColor 1 1 0 field SFVec3f deskSize 1 1 1 field SFRotation deskFace 0 0 0 0 ] { # DEF leg Shape { # geometry Cylinder { # radius 0.2 # height 5 # }
# appearance Appearance { # material Material { # diffuseColor IS legColor # } # } # } Transform { translation IS deskPos rotation IS deskFace scale IS deskSize children [ Transform { translation 1 2.51 -1 rotation 1 0 0 1.571 children [ Shape { geometry
Box { size 4 3 0.2 } appearance Appearance { material Material { diffuseColor IS deskColor } } } ] } Transform { translation 0 0 0 children [ # USE leg Shape { geometry Cylinder { radius 0.2 height 5 } appearance Appearance { material Material { diffuseColor
IS legColor } } } ] } Transform { translation 0 0 -2 children [ # USE leg Shape { geometry Cylinder { radius 0.2 height 5 } appearance Appearance { material Material { diffuseColor IS legColor } } } ] } Transform { translation 2 0 0 children [ # USE leg
Shape { geometry Cylinder { radius 0.2 height 5 } appearance Appearance { material Material { diffuseColor IS legColor } } } ] } Transform { translation 2 0 -2 children [ # USE leg Shape { geometry Cylinder { radius 0.2 height 5 } appearance Appearance
{ material Material { diffuseColor IS legColor } } } ] } ] } } desk{}